<table border="1" cellpadding="1" cellspacing="0">
    <tr>
        <th scope="row">ID</th>
        <th scope="row">Tên hàng hóa</th>
        <th scope="row">Giá (ngàn/KG)</th>
        <th scope="row">Số lượng (KG)</th>
        <th scope="row">Xóa</th>
    </tr>
<?php
while($aRow = mysql::fetchSql($aResult)){
?>
    <tr>
        <td><?php echo $aRow['inventoryId']; ?></td>
        <td><a href="<?php echo func::makeUrl('inventory', 'update', $aRow['inventoryId']); ?>"><?php echo $aRow['title']; ?></a></td>
        <td><?php echo func::numberFormat($aRow['price']); ?></td>
        <td><?php echo func::numberFormat($aRow['quantity']); ?></td>
        <td><a href="<?php echo func::makeUrl('inventory', 'delete', $aRow['inventoryId']); ?>">Xóa</a></td>
    </tr>
<?php
}
$aResult->free();
?>
    <tr>
        <td colspan="7" align="right"><a href="<?php echo  func::makeUrl('inventory', 'add'); ?>">Thêm hàng hóa</a></td>
    </tr>
</table>